﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class TzInfo : System.Web.UI.Page
{
    public string fname;
    protected void Page_Load(object sender, EventArgs e)
    {
        string ID =  Request.QueryString["ID"].ToString();
        if (!IsPostBack)
        {
            ID = Request.QueryString["ID"].ToString();
        }
    }




    protected void Button1_Click(object sender, EventArgs e)
    {
        ID = Request.QueryString["ID"].ToString();

            string sql;
            sql = "update  学生选课  set 同组信息='" + this.TextBox3.Text + "' where ID='" + ID + "'";
            int result;
            result = new Class1().hsgexucute(sql);
            if (result == 1)
            {
                Response.Write("<script>javascript:alert('添加成功');</script>");
            }
            else
            {
                Response.Write("<script>javascript:alert('系统错误');</script>");
            }
        }
       
       
  

}
